package model;

import javax.microedition.lcdui.Image;

/**
 * Any graphical object in the system (which must have an image associated with it).
 *
 * @author rhaq
 * @version 1.00 2009-05-06 Initial submission.
 */
public abstract class Graphical
{
	/** The image associated with this graphical object. */
	protected Image image;


	/**
	 * Initializes this graphical object with the specified image.
	 * @param image The image associated with this graphical object.
	 */
	public Graphical(Image image)
	{
		this.image = image;
	}


	/**
	 * Retrieves the image associated with this graphical object.
	 * @return The image associated with this graphical object.
	 */
	public Image getImage()
	{
		return image;
	}


	/**
	 * Sets the image of this graphical object to the specified one.
	 * @param image The image to be associated with this object.
	 */
	public void setImage(Image image)
	{
		this.image = image;
	}
}